/*
 * @Author: 颜礼田 2564217790@qq.com
 * @Date: 2024-09-07 10:58:06
 * @LastEditors: 颜礼田 2564217790@qq.com
 * @LastEditTime: 2024-09-07 11:06:55
 * @FilePath: /webServer/src/model/index.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import {
  CreateDateColumn,
  DeleteDateColumn,
  PrimaryGeneratedColumn,
  UpdateDateColumn,
} from 'typeorm';
import { BaseColumns } from '../schema/base';

export class DBColumns implements BaseColumns {
  @PrimaryGeneratedColumn('uuid')
  id: string;

  @CreateDateColumn({ type: 'timestamp' })
  createAt: Date;

  @DeleteDateColumn({ type: 'timestamp' })
  deleteAt: Date;

  @UpdateDateColumn({ type: 'timestamp' })
  updateAt: Date;
}
